﻿using GNBaseService.Pay.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GNBaseService.Pay.TradeChannel.WeiXin.Request
{
    public class WeiXinAPPRequestJson
    {
        public WeiXinAPPRequestJson(string AppId,
            string TimeStamp,
            string NonceStr,
            string PaySign,
            string Partnerid,
            string Prepayid
            )
        {
            this.appId = AppId;
            this.nonceStr = NonceStr;
            this.paySign = PaySign;
            this.prepayid = Prepayid;
            this.partnerid = Partnerid;
            this.timeStamp = TimeStamp;
        }
        /// <summary>
        /// 
        /// </summary>
        public string appId { get; set; }

        public string timeStamp { get; set; }

        public string nonceStr { get; set; }

        public string package { get { return "Sign=WXPay"; } }

        public string signType { get { return "signType"; } }

        public string paySign { get; set; }

        public string partnerid { get; set; }

        public string prepayid { get; set; }

        public string ToResult()
        {
            return CommonExtension.ToJson(this, false);
        }
    }
}
